package com.rightsidetech.activity.dto.request.store;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class MtUploadPicReq implements Serializable {

    @ApiModelProperty("活动id")
    @NotNull(message = "id不可为空")
    private Long id;

    @ApiModelProperty("图片")
    @NotBlank(message = "图片不可为空")
    @Pattern(regexp = "^http://.*|https://.*",message = "图片为一个uri地址")
    private String picture;

    @ApiModelProperty("点赞数量")
    private Integer count;
}
